package com.itheima.project.hystrix;

import com.itheima.project.basic.ResponseWrap;
import com.itheima.project.core.enums.log.LogBusinessEnum;
import com.itheima.project.feign.LogBusinessFeign;
import com.itheima.project.utils.ResponseWrapBuild;
import com.itheima.project.vo.log.LogBusinessVo;
import org.springframework.stereotype.Component;

/**
 * @ClassName LogBusinessFeign.java
 * @Description LogBusinessFeign的Hystrix
 */
@Component
public class LogBusinessHystrix implements LogBusinessFeign {

    @Override
    public ResponseWrap<Boolean> saveLogBusiness(LogBusinessVo logBusinessVo) {
        return ResponseWrapBuild.build(LogBusinessEnum.SAVE_FAIL,false);
    }
}
